package io.renren.modules.task.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.task.dao.MtCcAgvCommunLogDao;
import io.renren.modules.task.entity.MtCcAgvCommunLogEntity;
import io.renren.modules.task.service.MtCcAgvCommunLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("mtCcAgvCommunLogService")
public class MtCcAgvCommunLogServiceImpl extends ServiceImpl<MtCcAgvCommunLogDao, MtCcAgvCommunLogEntity> implements MtCcAgvCommunLogService {

    @Autowired
    private MtCcAgvCommunLogDao mtCcAgvCommunLogDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MtCcAgvCommunLogEntity> page = this.page(
                new Query<MtCcAgvCommunLogEntity>().getPage(params),
                new QueryWrapper<MtCcAgvCommunLogEntity>()
        );

        return new PageUtils(page);
    }

//    @Override
//    @Transactional(rollbackFor = Exception.class)
//    public void saveAgvCommunLog(MtCcAgvCommunLogEntity mtCcAgvCommunLogEntity) {
//        this.save(mtCcAgvCommunLogEntity);
//    }
//
//    @Override
//    @Transactional(rollbackFor = Exception.class)
//    public void update(MtCcAgvCommunLogEntity mtCcAgvCommunLogEntity, QueryWrapper<MtCcAgvCommunLogEntity> updateWrapper) {
//        this.update(mtCcAgvCommunLogEntity,updateWrapper);
//    }
//
//    @Override
//    public void updateAgvCommunLog(MtCcAgvCommunLogEntity mtCcAgvCommunLogEntity, QueryWrapper<MtCcAgvCommunLogEntity> updateWrapper) {
//        mtCcAgvCommunLogDao.update(mtCcAgvCommunLogEntity,updateWrapper);
//    }
}